package com.hh.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hxn
 * @since 2018-02-09
 */
@TableName("sys_operation_log")
public class SysOperationLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 日志类型 1 新增 2 修改 3 删除
     */
	private Integer type;
    /**
     * 操作名称
     */
	private String name;
    /**
     * 用户ID
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 操作的类名
     */
	@TableField("class_name")
	private String className;
    /**
     * 操作的方法名
     */
	private String method;
    /**
     * 操作的具体内容
     */
	private String content;
    /**
     * 创建时间
     */
	@TableField(value = "create_time", fill = FieldFill.INSERT)
	private Date createTime;
	
	public SysOperationLog(){
		
	}

	public SysOperationLog(Integer type, String name, Long userId,
			String className, String method, String content) {
		super();
		this.type = type;
		this.name = name;
		this.userId = userId;
		this.className = className;
		this.method = method;
		this.content = content;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "SysOperationLog{" +
			"id=" + id +
			", type=" + type +
			", name=" + name +
			", userId=" + userId +
			", className=" + className +
			", method=" + method +
			", content=" + content +
			", createTime=" + createTime +
			"}";
	}
}
